package com.atguigu.cloud.apis;

import com.atguigu.cloud.apifallback.PayFeignSentinelApiFallBack;
import com.atguigu.cloud.resp.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName:PayFeignSentinelApi
 * Package:com.atguigu.cloud.apis
 * Description: 描述信息
 *
 * @date:2024/3/6 21:25
 * @author:坤坤
 */

@FeignClient(value = "nacos-payment-provider",fallback = PayFeignSentinelApiFallBack.class)
public interface PayFeignSentinelApi
{
    @GetMapping("/pay/nacos/get/{orderNo}")
    public ResultData getPayByOrderNo(@PathVariable("orderNo") String orderNo);
}